package net.jueb.flexAdmin.services.impl;

import org.apache.commons.lang.StringUtils;
import org.springframework.flex.remoting.RemotingDestination;
import org.springframework.flex.remoting.RemotingInclude;
import org.springframework.stereotype.Service;

import net.jueb.flexAdmin.services.LoginService;

@Service
@RemotingDestination(value ="loginService")
public class LoginServiceImpl implements LoginService{
    
	@Override
	@RemotingInclude
	public String login(String user, String pwd) throws Exception {
		if(StringUtils.isEmpty(pwd))
		{
			throw new RuntimeException("pwd is empty");
		}
		return "success";
	}
}